package org.jeeasy.common.core.service;

import jakarta.servlet.ServletRequest;
import org.jeeasy.common.core.domain.IAuthUser;

/**
 * @author AlpsDDJ
 * @date 2020/11/24 9:10
 */
public interface CurrentAuthUserService {
    /**
     * 获取当前登录用户信息
     *
     * @return {@link IAuthUser}
     */
    IAuthUser getCurrentAuthUser();

    /**
     * 获取当前登录用户信息
     *
     * @param request {@link ServletRequest}
     * @return {@link IAuthUser}
     */
    IAuthUser getCurrentAuthUser(ServletRequest request);
}
